package com.huangliusong.desigin.pattern.structual.bridge;

/**
 * @author huangliusong
 * @since 2018/10/12
 * {@link }
 */
public class Test {
    public static void main(String[] args) {
        Bank icbcBank=new ICBCBank(new DepositAccount());
        Account icbcAccount=icbcBank.openAccount();
       // icbcAccount.showAccountType();

        Bank abcBank=new ICBCBank(new SavingAccount());
        Account abcAccount=abcBank.openAccount();
       // abcAccount.showAccountType();

        Bank abcBank2=new ABCBank(new SavingAccount());
        Account abcAccount2=abcBank2.openAccount();
       // abcAccount2.showAccountType();

    }
}
